package annotation;

import org.springframework.context.annotation.Lazy;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Controller;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;
//多例
@Scope("prototype")
@Lazy
// 默认对象名：demoA 类名首字母小写
@Component //其他
/*
@Controller //一般在控制层类书写
@Repository //一般在Dao层书写
@Service //一般在业务层书写
 */
public class DemoA {
    public void a(){
        System.out.println("aaaaaa");
    }
}
